<ui:composition
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:c="http://java.sun.com/jsp/jstl/core">

      

            <p:dataTable value="#{catalogoBean.itemCatalogo.stock}" var="s"
                 rendered="#{not empty catalogoBean.itemCatalogo.stock
                             and (catalogoBean.itemCatalogo.stockTotal > 1)
                             or((catalogoBean.itemCatalogo.pnuevo!='S') and (catalogoBean.itemCatalogo.productoApedido!='S')) }" >

         

                <p:column headerText="Almc." >
                    <h:outputText value="#{s.sucursal}" />
                </p:column>

                <p:column headerText="Stock" >

                    <h:graphicImage value="#{aplicacionBean.parametro.pathImagenesDefault}/iconos/stock-bajo.gif" width="14" height="30"
                                    rendered="#{1 > s.cantidad}" />
                    <h:graphicImage value="#{aplicacionBean.parametro.pathImagenesDefault}/iconos/stock-medio.gif" width="14" height="30"
                                    rendered="#{(catalogoBean.itemCatalogo.stockMinimo >= s.cantidad ) and (s.cantidad > 0 )}" />
                    
                    
                    <h:graphicImage value="#{aplicacionBean.parametro.pathImagenesDefault}/iconos/stock-alto.gif" width="14" height="30"
                                    rendered="#{s.cantidad > catalogoBean.itemCatalogo.stockMinimo}" />
             
             
                    <h:graphicImage value="#{aplicacionBean.parametro.pathImagenesDefault}/iconos/stock-alto.gif" width="14" height="30"
                             rendered="#{i.stockTotal > i.stockMinimo and not(i.productoApedido=='S') }" />
                    
                    
                </p:column>

                <p:column headerText="Cant." rendered="#{usuarioSessionBean.usuario.tipo == 'P' or (usuarioSessionBean.usuario.tipo == 'V') }">

                    <h:outputText value="#{s.cantidad}" >
                        <f:convertNumber pattern="0"/>
                    </h:outputText>
                    
                </p:column>

            </p:dataTable>

       

        <div style="position: relative; float: left; width: 400px;">

            <h:panelGroup rendered="#{(catalogoBean.itemCatalogo.productoApedido=='S') or ((1 > catalogoBean.itemCatalogo.stockTotal) and (catalogoBean.itemCatalogo.pnuevo=='S'))}" >

                <div class="ui-messages-info ui-corner-all" style="width: 230px;">
                    <span class="ui-messages-info-icon"></span>
                    <span class="ui-messages-error-summary">
                        Consultar. Producto a pedido.
                    </span>
                </div>

            </h:panelGroup>

        


        </div>




</ui:composition>
